home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / freeWAIS-sf-1.1 / indexsfhtml.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1995-07-27  |  727 b   |  42 lines

  1. #!/bin/sh
  2. #
  3. #    indexsfhtml.sh
  4. #
  5. #    Testing create wais index of html documents on gruntsco, 
  6. #        using wais-sf-1.1
  7. #
  8. #    This worked 12 May 1995 and as well the
  9. #        script: /usr/local/etc/httpd/cgi-bin/kidsf1.1.pl
  10. #
  11. HTML_DOC=/b/httpd/doc
  12. WAIS_SOURCES=/usr/wais/wais-sources
  13. WAIS_BIN=.
  14. WAISINDEX=/usr/local/bin/waisindexsf1.1
  15. URL_trim=/b/httpd/doc
  16. URL_prefix=http://gruntsco.pdev.sco.com
  17. #
  18. #
  19. set_trap()  {
  20.         trap 'echo "Interrupted! Giving up..."; cleanup 1' 1 2 3 15
  21. }
  22.  
  23. cleanup() {
  24.         trap '' 1 2 3 15
  25.     cd $HERE
  26.         exit $1
  27. }
  28.  
  29. #
  30. #
  31. #
  32. umask 002
  33. HERE=`pwd`
  34. set_trap
  35. cd $WAIS_SOURCES
  36.  
  37. find $HTML_DOC -name "*.html" -print | $WAISINDEX -d gruntsco -stdin -mem 10 -contents -t URL $URL_trim $URL_prefix
  38.  
  39. cd $HERE
  40. cleanup 0
  41.  
  42.